package com.lin.vo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Order订单模型类
 *
 * @author manage
 */
public class Order {
    private String oid; // 主键
    private Double total; // 总金额
    private Date ordertime;     // 日期
    private User user;          // 用户实体
    private String address;     // 地址
    private Integer state;      // 1.未付款； 2.已付款、未发货； 3.已发货、未确认； 4.已确认，订单完成
    private List<OrderItem> orderItems = new ArrayList<>();  // 订单项

    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public Double getTotal() {
        return total;
    }

    public void setTotal(Double total) {
        this.total = total;
    }

    public Date getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(Date ordertime) {
        this.ordertime = ordertime;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public List<OrderItem> getOrderItems() {
        return orderItems;
    }

    public void setOrderItems(List<OrderItem> orderItems) {
        this.orderItems = orderItems;
    }


}	
